package com.zHan.system.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zHan.model.dto.SysUserQueryDto;
import com.zHan.model.dto.UpdatePwdDto;
import com.zHan.model.system.SysUser;
import com.zHan.model.vo.UserDetailsVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author zHan
 * @since 2023-06-22
 */
public interface ISysUserService extends IService<SysUser> {

    Page<SysUser> selectPageQuery(Long page, Long pageSize, SysUserQueryDto userQueryVo);

    boolean updateStatus(Long id, Integer status);

    SysUser getUserInfoByUserName(String loginVo);

    Map<String, Object> getUserByUserName(String username);

    boolean updateAvatar(String avatarUrl);

    boolean updatePwd(UpdatePwdDto updatePwdDto, String token);

    UserDetailsVo getUserDetails(String username);

    boolean removeUserById(Long id);

    boolean removeUserByIds(List<Long> idList);
}
